//
//  FriendGroupCell.m
//  ChangChat
//
//  Created by Cocoa on 2019/9/15.
//  Copyright © 2019 yibai. All rights reserved.
//

#import "FriendGroupCell.h"

@implementation FriendGroupCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    
    self.groupNameLabel = [UILabel k_labelWithFontSize:15 textColor:UIColor.k_t2Color];
    self.selectedImgView = [[UIImageView alloc] initWithImage:UIImage.k_imgName(@"friend_group_selecte")];
    
    [self.contentView addSubview:self.groupNameLabel];
    [self.contentView addSubview:self.selectedImgView];
    
    [self.groupNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.top.mas_offset(15);
        make.bottom.mas_offset(-15);
    }];
    
    [self.selectedImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_offset(-15);
        make.centerY.mas_offset(0);
        make.size.mas_equalTo(CGSizeMake(16, 16));
    }];
    self.selectedImgView.hidden = YES;
}

@end
